package ioChat

import "gitee.com/saxon134/workflow/db/chat"

type ListRequest struct {
	LastId       int64  `json:"lastId" form:"lastId"`
	DemandId     int64  `json:"demandId" form:"demandId"`
	Level        int    `json:"level" form:"level"`
	DemandStatus int    `json:"demandStatus" form:"demandStatus"`
	Keyword      string `json:"keyword" form:"keyword"`
}

type ListResponse struct {
	List   []*chat.Chat `json:"list"`
	LastId int64        `json:"lastId"`
}

type UpdateRequest struct {
	ChatId     int64  `json:"chatId" form:"chatId"`
	ResourceId int64  `json:"resourceId" form:"resourceId"`
	Key        string `json:"key" form:"key"`
	Value      string `json:"value" form:"value"`
}
